<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div:nth-of-type(1){
            background:url(tiao.png);
            width:180px;
            height:300px;
            animation:a1 .5s steps(7,start) infinite;
        }
        div:nth-of-type(2){
            background:url(run.png);
            width:188px;
            height:127px;
            animation:a2 .3s steps(5,end) infinite;
        }
        @keyframes a1{
            100%{
                background-position:-1260px 0;
            }
        }
        @keyframes a2{
            100%{
                background-position:-938px 0;
            }
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
</body>
</html>
